package org.example.rpc.common.eunm;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum RpcError {

    SERVICE_INVOCATION_FAILURE("服务调用出现异常"),
    SERVICE_NOT_FOUND("未找到对应服务"),
    SERVICE_NOT_IMPLEMENT_ANY_INTERFACE("注册的服务未实现接口"),
    UNKNOW_PROTOCAL("错误的协议包"),
    UNKNOW_PACKAGE_TYPE("错误的数据包类型"),
    UNKNOW_SERIALIZER("非法序列化"),
    SERIALIZER_NOT_FOUND("找不到序列化器");

    private final String message;
}
